package com.ruoyi.project.data.mapper;

import com.ruoyi.project.data.domain.WeightCarEnter;
import com.ruoyi.project.data.domain.WeightRecord;

import java.util.List;
import java.util.Map;

/**
 * 车辆进场记录Mapper接口
 *
 * @author ruoyi
 * @date 2020-03-24
 */
public interface WeightCarEnterMapper
{
    /**
     * 查询车辆进场记录
     *
     * @param id 车辆进场记录ID
     * @return 车辆进场记录
     */
    public WeightCarEnter selectWeightCarEnterById(Long id);

    /**
     * 查询车辆进场记录列表
     *
     * @param weightCarEnter 车辆进场记录
     * @return 车辆进场记录集合
     */
    public List<WeightCarEnter> selectWeightCarEnterList(WeightCarEnter weightCarEnter);

    /**
     * 新增车辆进场记录
     *
     * @param weightCarEnter 车辆进场记录
     * @return 结果
     */
    public int insertWeightCarEnter(WeightCarEnter weightCarEnter);

    /**
     * 修改车辆进场记录
     *
     * @param weightCarEnter 车辆进场记录
     * @return 结果
     */
    public int updateWeightCarEnter(WeightCarEnter weightCarEnter);

    /**
     * 删除车辆进场记录
     *
     * @param id 车辆进场记录ID
     * @return 结果
     */
    public int deleteWeightCarEnterById(Long id);

    /**
     * 批量删除车辆进场记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWeightCarEnterByIds(Long[] ids);

    public WeightCarEnter selectCarEnterByCarNo(Map<String, Object> param);

    public String selectCameraCodeByIp(String cameraCode);

    public WeightCarEnter selectCarEnterByWeight(WeightRecord weightRecord);
}
